package com.hongdee.insurance.company.dao.impl;

import com.hongdee.base.basedao.impl.BaseDaoImpl;
import com.hongdee.insurance.company.dao.ITInsuranceDao;
import com.hongdee.insurance.company.entity.TInsuranceCompany;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Mr. Xu on 2017/4/24.
 */
@Service
public class TInsuranceDaoImpl extends  BaseDaoImpl implements ITInsuranceDao {
    @Override
    public TInsuranceCompany getInfo(String id) throws Exception {
        String hql="from TInsuranceCompany where id=:id";
        Map<String,Object> params=new HashMap<>();
        params.put("id",id);
        return (TInsuranceCompany) this.getHibernateDao().findEntityByHqlWithParams(hql,params);
    }
}
